package com.zelix;

import java.io.*;
import java.util.*;

public final class ej extends ui {

    private static final String f = System.getProperty(z(z("8~g\013=-r{\017a?cd\034")));
    private ArrayList j;
    private ArrayList k;
    private static String z[];

    public ej(int i) {
        super(i);
        j = new ArrayList();
        k = new ArrayList();
    }

    protected void a(nh nh1, int i, int l) {
        it it1;
        PrintWriter printwriter;
        cs cs1;
        gv gv1;
        ByteArrayOutputStream bytearrayoutputstream;
        ByteArrayOutputStream bytearrayoutputstream1;
        ByteArrayOutputStream bytearrayoutputstream2;
        kb kb1;
        PrintWriter printwriter1;
        PrintWriter printwriter2;
        String s;
        ArrayList arraylist;
        HashSet hashset;
        nc anc[];
        hc ahc[];
        Enumeration enumeration;
        int i1;
        int i2;
        boolean flag;
        flag = iu.q;
//        i2 = si.g;
        it1 = nh1.c();
        printwriter = nh1.n();
        cs1 = new cs(printwriter, vh.e().length(), nh1.y());
        gv1 = gv.b();
        bytearrayoutputstream = new ByteArrayOutputStream();
        bytearrayoutputstream1 = new ByteArrayOutputStream();
        bytearrayoutputstream2 = new ByteArrayOutputStream();
        kb1 = new kb(bytearrayoutputstream);
        printwriter1 = new PrintWriter(bytearrayoutputstream1);
        printwriter2 = new PrintWriter(bytearrayoutputstream2);
        s = vh.e();
        String s1 = s + z[14];
        printwriter.println(s1);
        System.out.println(s1);
        Hashtable hashtable = new Hashtable(27);
        arraylist = new ArrayList();
        hashset = new HashSet(13);
        anc = a(hashtable, arraylist, hashset, ((PrintWriter) (kb1)), nh1, ((bs) (cs1)));
        ahc = new hc[hashtable.size()];
        enumeration = hashtable.elements();
        for (i1 = 0; i1 < ahc.length; i1++) {
            int j2 = vh.e;
            vh.e = ++j2;
            ahc[i1] = (hc) enumeration.nextElement();
        }
        if (nh1.z())
            a(anc, printwriter);
        File afile[] = new File[arraylist.size()];
        arraylist.toArray(afile);
        sx sx1 = new sx(0);
        int j1 = it1.a(anc, ahc, hashset, afile, cs1, gv1, null, kb1, printwriter1, sx1, printwriter2);
        kb1.close();
        printwriter1.close();
        printwriter2.close();
        String s2 = bytearrayoutputstream1.toString();
        String s3 = bytearrayoutputstream.toString();
        String s4 = bytearrayoutputstream2.toString();
        System.out.println(zu.a(s.length() + 1, ' ') + z[22] + j1 + (j1 <= 1 ? z[20] : z[17]));
        if (s3.length() > 0) {
            int k1 = zu.a(s3, zo.e);
            printwriter.println(z[13]);
            printwriter.println(s3);
            System.err.println(zu.a(s.length() + 1, ' ') + k1 + (k1 <= 1 ? z[12] : z[18]) + z[21]);
        }
        if (sx1.b() > 0) {
            int l1 = sx1.b();
            printwriter.println(z[16]);
            printwriter.println(s2);
            System.out.println(zu.a(s.length() + 1, ' ') + l1 + (l1 <= 1 ? z[23] : z[15]) + z[19]);
        }
        printwriter.println(s4);
        if (flag) {
            int k2 = gs.b;
            gs.b = ++k2;
        }
    }

    public String a() {
        return z[9];
    }

    nc[] a(Hashtable hashtable, ArrayList arraylist, HashSet hashset, PrintWriter printwriter, nh nh1, bs bs) {
        Vector vector;
        int i;
        int l;
        vector = new Vector();
        i = j.size();
        for (l = 0; l < i; l++) {
            File file;
            Vector vector1;
            int i1;
            int j1;
            String s1;
            String s = (String) j.get(l);
            s1 = oc.c(s);
            if (oc.a(s1)) {
                file = new File(nh1.f(), s1);
            } else {
                file = new File(s1);
            }
            if (file.exists()) {
                a(file.getAbsolutePath(), vector, arraylist, hashtable, hashset, printwriter, nh1, bs);
            } else if (s1.endsWith("*")) {
                s1 = s1.substring(0, s1.length() - 1);
                if (oc.a(s1)) {
                    file = new File(nh1.f(), s1);
                } else {
                    file = new File(s1);
                }
                if (file.exists() && file.isDirectory()) {
                    a(file.getAbsolutePath(), vector, arraylist, hashtable, hashset, printwriter, nh1, bs);
                    kc kc1 = new kc(file);
                    vector1 = kc1.a();
                    i1 = vector1.size();
                    for (j1 = 0; j1 < i1; j1++) {
                        String s2 = (String) vector1.elementAt(j1);
                        a(s2, vector, arraylist, hashtable, hashset, printwriter, nh1, bs);
                    }
                } else if (file.exists()) {
                    nh1.a("\"" + file.getAbsolutePath() + z[11]);
                } else
                    nh1.a("\"" + file.getAbsolutePath() + z[10]);
            } else
                nh1.a("\"" + file.getAbsolutePath() + z[10]);
        }
        nc anc[] = new nc[vector.size()];
        vector.copyInto(anc);
        return anc;
    }

    public void a(uh uh1, nh nh1) {
        int i;
        int l;
        int i1;
        int j1;
        i = g();
        l = nh1.x();
        i1 = nh1.h();
        for (j1 = 0; j1 < i; j1++) {
            uh uh2 = a(j1);
            uh2.a(this, nh1);
            if (uh2 instanceof cm) {
                cm cm1 = (cm) uh2;
                String s = cm1.d();
                if (j.contains(s)) {
                    nh1.e("\"" + s + z[6] + a() + z[2] + d() + z[3]);
                } else {
                    j.add(s);
                }
            } else if (uh2 instanceof g5) {
                g5 g5_1 = (g5) uh2;
                String s1 = g5_1.d();
                String s2 = s1.replace('\\', '/');
                if (!s2.equals(s1))
                    nh1.e(z[8] + s1 + z[5] + s2 + z[1] + a() + z[2] + d() + ".");
                if (k.contains(s2)) {
                    nh1.e(z[8] + s2 + z[6] + a() + z[2] + d() + z[3]);
                } else {
                    k.add(s2);
                }
            } else {
                nh1.a(getClass().getName() + z[4] + uh2.getClass().getName() + z[7] + j1 + z[0] + d() + ".");
            }
        }
        b(nh1, l, i1);
        a(nh1, l, i1);
    }

    private void a(String s, Vector vector, ArrayList arraylist, Hashtable hashtable, HashSet hashset, PrintWriter printwriter, nh nh1,
                   bs bs) {
        File file;
        String as[];
        int i;
        file = new File(s);
        if (file.isFile() && !file.isDirectory()) {
            if (s.endsWith(z[26])) {
                vector.add(new nc(file));
            } else if (hc.b(s)) {
                try {
                    File file1 = wp.a(file);
                    wp.a(file1, vector, hashtable, k, hashset, file.getAbsolutePath(), null, bs);
                }
                catch (IOException ioexception) {
                    nh1.a(z[32] + qc.a + z[27] + ioexception);
                }
            } else if (s.endsWith(z[25])) {
                arraylist.add(file);
            } else
                nh1.a(z[28] + file.getAbsolutePath() + z[31]);
        } else if (!file.isFile() && file.isDirectory()) {
            as = file.list(new jc());
            if (as == null) {
                for (i = 0; i < as.length; i++) {
                    File file2 = new File(file, as[i]);
                    vector.addElement(new nc(file2));
                }
            }
        } else
            printwriter.println(file.getPath() + z[29] + file.isDirectory() + z[30] + file.isFile());
    }

    private void a(nc anc[], PrintWriter printwriter) {
        int i;
        int l;
        i = anc.length;
        for (l = 0; l < i; l++) {
            nc nc1 = anc[l];
            printwriter.println("\t" + nc1.d() + (nc1.f() ? "" : z[24] + nc1.b()));
        }
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x13;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x5e;
                    break;
                case 1:
                    key = 23;
                    break;
                case 2:
                    key = 11;
                    break;
                case 3:
                    key = 110;
                    break;
                default:
                    key = 19;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[] = new String[33];
        as[0] = z(z("~v\177N\1777ynN"));
        as[1] = z(z("|7b\0003|"));
        as[2] = z(z("|7x\032r*rf\013}*7j\03232~e\0133"));
        as[3] = z(z("p7M\007a-c+\001p=by\034v0tnNd7{gNq;7~\035v:9"));
        as[4] = z(z("~\177j\n3"));
        as[5] = z(z("|7h\006r0pn\n3*x+C1"));
        as[6] = z(z("|7j\036c;vy\03533xy\0133*\177j\00031yh\01337y+L"));
        as[7] = z(z("~vxNp6~g\n3"));
        as[8] = z(z("s5"));
        as[9] = z(z("1gn\0"));
        as[10] = z(z("|7o\001v-7e\001g~rs\007`*"));
        as[11] = z(z("|7b\03530x\177Nr~sb\034v=cd\034j"));
        as[12] = z(z("~ry\034|,"));
        as[13] = z(z("\033ey\001a-7o\013g;t\177\013w~s~\034z0p+\002|?s%@="));
        as[14] = z(z("~X{\013}7ylNp2vx\035v-9%@"));
        as[15] = z(z("~V['3)vy\000z0px"));
        as[16] = z(z("\037GBNp?{g\0353:r\177\013p*roNg6v\177N~?n+\000|*7i\01336ve\n\177;s+\017f*xf\017g7tj\002\177'9%@"));
        as[17] = z(z("~tg\017`-rx"));
        as[18] = z(z("~ry\034|,d"));
        as[19] = z(z("~sn\032v=cn\n3:by\007}97d\036v09"));
        as[20] = z(z("~tg\017`-"));
        as[21] = z(z("~sn\032v=cn\n3:by\007}97d\036v06"));
        as[22] = z(z("\021gn\000v:7"));
        as[23] = z(z("~`j\034}7yl"));
        as[24] = z(z("~x{\013};s+\ba1z+"));
        as[25] = z(z("p}j\n"));
        as[26] = z(z("ptg\017`-"));
        as[27] = z(z("y71N"));
        as[28] = z(z("\030~g\0133y"));
        as[29] = z(z("~td\033\177:y,\0323<r+\034v=xl\000z$roN>~~x*z,rh\032|,n#G."));
        as[30] = z(z("~~x(z2r#G."));
        as[31] = z(z("y7e\001g~v+\034v=xl\000z$roNg'gn@"));
        as[32] = z(z("\035x~\002w~yd\0323=en\017g;7\177\013~.xy\017a'7m\007\177;7b\0003y"));
        z = as;
    }
}